{% extends 'root.html' %}

{% block root_content %}
{% if header %}
<h1>{{header}}</h1>
{% endif %}
{% if form.is_multipart %}
<form enctype="multipart/form-data" class="{{form_class|default:"generated"}}" action="{{action_url}}" method="POST">
{% else %}
<form class="{{form_class|default:"form"}}" action="{{action_url}}" method="POST">
{% endif %}
{% csrf_token %}
    <table>
        {% if caption %}
       <caption>{{caption}}</caption>
        {% endif %}
       {{form.as_table}}
    </table>
    <input type="submit" value="{{submit|default:'Submit'}}" />
</form>
{% endblock %}
